<?php $form=$this->beginWidget('bootstrap.widgets.TbActiveForm',array(
	'action'=>Yii::app()->createUrl($this->route),
	'method'=>'get',
)); ?>

        <?php echo $form->textFieldRow($model,'noSJ',array('class'=>'span5','maxlength'=>20)); ?>
	<?php echo  '';
                    //Warning: change relationAttributeName1 if exist
                    $dataRute = Rute::model()->findAll(array('order' => 'namaRute'));
		    $listRute = CHtml::listData($dataRute,'id', 'namaRute');
		    echo $form->select2Row($model, 'ref_rute_id', array(
			   'data' => $listRute,

			))
			; ?>

	<?php 
//        echo  '';
//                    //Warning: change relationAttributeName2 if exist
//                    $dataBongkarMuat = BongkarMuat::model()->findAll(array('order' => 'relationAttributeName2'));
//		    $listBongkarMuat = CHtml::listData($dataBongkarMuat,'id', 'relationAttributeName2');
//		    echo $form->select2Row($model, 'tb_bongkar_muat_id', array(
//			   'data' => $listBongkarMuat,
//
//			))
//			; ?>

	<div class="form-actions">
		<?php $this->widget('bootstrap.widgets.TbButton', array(
			'buttonType' => 'submit',
			'type'=>'primary',
			'label'=>'Search',
		)); ?>
	</div>

<?php $this->endWidget(); ?>
